/*
 * Copyright (c) 2006 - 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * <p>Project: app2022 - FileInputStream2
 * <p>Powered by webrx On 2022-01-18 11:52:58
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class FileInputStream2 {
    public static void main(String[] args) {
        String f = "p.jpg";
        try (var fis = new FileInputStream(f)) {
            byte[] buf = new byte[10];
            fis.read(buf);
            //System.out.printf("%02x", fis.read());
            //System.out.printf("%02x", fis.read());
            //System.out.printf("%02x", fis.read());
            //System.out.printf("%02x", fis.read());
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
